package com.lifeng.patterns.strategy;

import org.springframework.stereotype.Service;

/**
 * Created by lifeng on 2019/8/15.
 * 支付宝支付
 */
@Service("ali")
public class AliPayService implements PayType{
    @Override
    public void pay(PayOrderVo vo) {
        //此处通过payOrderVo 组装调起支付宝支付的参数
        System.out.println("支付宝支付");
    }

    @Override
    public String getPayType() {
        return "ali";
    }
}
